package com.translate.web.api.controller;

import java.util.List;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.response.vo.ResponseModel;
import com.translate.vo.ServiceIntroductionVO;
import com.translate.web.service.IServiceIntroductionService;

@RestController
@RequestMapping("serviceIntroduction")
public class ServiceIntroductionController {
	private IServiceIntroductionService service;


	public ServiceIntroductionController(IServiceIntroductionService service) {
		this.service = service;
	}


	/**
	 * 服务介绍列表
	 * @param param
	 * @return
	 */
	@PostMapping("/listIntroductions")
	public ResponseModel<List<ServiceIntroductionVO>> listIntroductions() {
		
		return ResponseModel.<List<ServiceIntroductionVO>>success(this.service.getListFromCache(ServiceIntroductionVO.class));
	}
}